PARSER=parser 
SERVER=server 
cc=g++

.PHONY:all
all:$(PARSER) $(SERVER)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -std=c++11 -lboost_system -lboost_filesystem
$(SERVER):server.cc
	$(cc) -o $@ $^ -std=c++11 -lpthread -ljsoncpp -lboost_system -lboost_filesystem

.PHONY:clean
clean:
	rm -rf parser server